load Fig2data.mat


year=2002:2010;
plot(year, CumEmSect(:,1), 'Color', [0.33 0.33 0.33],'LineWidth', 3, 'LineStyle', '-', 'Marker', '*'); 
xlim([2001.9 2010]);
ylim([-4.2 4.0]);
xlabel('Year', 'FontSize',12);
ylabel('DID Coefficient Values', 'FontSize',12);
title('Cumulative Years of Employment', 'FontSize',12)

hold on

plot(year, CumEmSect(:,2), 'Color', 'r', 'LineStyle', '-', 'LineWidth', 1.7, 'Marker', 'd', 'DisplayName','at Initial Workplace');
hold on
plot(year, CumEmSect(:,3), 'Color', 'b', 'LineStyle', '-', 'LineWidth', 1.7, 'Marker', 'o', 'DisplayName','at Textile and Clothing');
hold on
plot(year, CumEmSect(:,4), 'Color', [0.343 0.43 0.63],  'LineWidth', 1.7, 'Marker', 'x', 'DisplayName','at other Manufacturing');
hold on
plot(year, CumEmSect(:,5), 'Color', 'g', 'LineStyle', '-', 'LineWidth', 1.7, 'Marker', 's', 'DisplayName','at Service');

l1=legend('Overall','at Initial Workplace', 'at T&C Jobs','at other Manufacturing','at Service Sector Jobs', 'Location','northwest');

set(l1,'FontSize',12);
    
legend('boxoff');

% h=gcf ;
% saveas(h, 'Figure2a.pdf');

clf('reset')

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


plot(year, CumHrsSect(:,1), 'Color', [0.33 0.33 0.33],'LineWidth', 3, 'LineStyle', '-', 'Marker', '*');
hold on
plot(year, CumHrsCI(:,1), 'Color', [0.33 0.33 0.33],'LineWidth', 1, 'LineStyle', '--', 'DisplayName','95% Confidence Interval'  );
hold on
plot(year, CumHrsCI(:,2), 'Color', [0.33 0.33 0.33],'LineWidth', 1, 'LineStyle', '--', 'HandleVisibility','off'  );
ylim([-4.5 4.5]);
xlim([2001.9 2010]);
xlabel('Year','FontSize',12);

ylabel('DID Coefficient Values','FontSize',12);
title('Cumulative Hours Worked','FontSize',12)

hold on

plot(year, CumHrsSect(:,2), 'Color', 'r', 'LineStyle', '-', 'LineWidth', 1.7, 'Marker', 'd', 'DisplayName','at Initial Workplace');
hold on
plot(year, CumHrsSect(:,3), 'Color', 'b', 'LineStyle', '-', 'LineWidth', 1.7, 'Marker', 'o', 'DisplayName','at Textile and Clothing');
hold on
plot(year, CumHrsSect(:,4), 'Color', [0.343 0.43 0.63], 'LineWidth', 1.7, 'Marker', 'x', 'DisplayName','at other Manufacturing');
hold on
plot(year, CumHrsSect(:,5), 'Color', 'g',  'LineWidth', 1.7, 'Marker', 's', 'DisplayName','at Service');

l1=legend('Overall','95% Confidence Interval for the overall effect','at Initial Workplace', 'at T&C Jobs','at other Manufacturing','at Service Sector Jobs', 'Location','northwest');
set(l1,'FontSize',12);

legend boxoff ;
% h=gcf ;
% saveas(h, 'Figure2b.pdf');
